package com.eshop.modules.order.vo;

import com.eshop.serializer.DoubleSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.io.Serializable;

public class OrderDataVo implements Serializable
{
    private Integer count;
    @JsonSerialize(using = DoubleSerializer.class)
    private Double price;
    private String time;
    
    public Integer getCount() {
        return this.count;
    }
    
    public Double getPrice() {
        return this.price;
    }
    
    public String getTime() {
        return this.time;
    }
    
    public void setCount(final Integer count) {
        this.count = count;
    }
    
    public void setPrice(final Double price) {
        this.price = price;
    }
    
    public void setTime(final String time) {
        this.time = time;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof OrderDataVo)) {
            return false;
        }
        final OrderDataVo other = (OrderDataVo)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$count = this.getCount();
        final Object other$count = other.getCount();
        Label_0065: {
            if (this$count == null) {
                if (other$count == null) {
                    break Label_0065;
                }
            }
            else if (this$count.equals(other$count)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$price = this.getPrice();
        final Object other$price = other.getPrice();
        Label_0102: {
            if (this$price == null) {
                if (other$price == null) {
                    break Label_0102;
                }
            }
            else if (this$price.equals(other$price)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$time = this.getTime();
        final Object other$time = other.getTime();
        if (this$time == null) {
            if (other$time == null) {
                return true;
            }
        }
        else if (this$time.equals(other$time)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof OrderDataVo;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $count = this.getCount();
        result = result * 59 + (($count == null) ? 43 : $count.hashCode());
        final Object $price = this.getPrice();
        result = result * 59 + (($price == null) ? 43 : $price.hashCode());
        final Object $time = this.getTime();
        result = result * 59 + (($time == null) ? 43 : $time.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "OrderDataVo(count=" + this.getCount() + ", price=" + this.getPrice() + ", time=" + this.getTime() + ")";
    }
}
